package com.cykj.order.domain.vo;

import java.sql.Timestamp;
import java.util.List;

/**
 * 购物车信息VO
 * 
 * @author cykj
 * @date 2025-01-20
 */
public class CartInfoVo {
    
    /** 购物车ID */
    private Integer cartId;
    
    /** 用户ID */
    private Integer customerId;
    
    /** 店铺ID */
    private Integer businessId;
    
    /** 创建时间 */
    private Timestamp createTime;
    
    /** 购物车商品明细列表 */
    private List<CartItemVo> items;
    
    /** 购物车总价 */
    private Double totalAmount;

    public Integer getCartId() {
        return cartId;
    }

    public void setCartId(Integer cartId) {
        this.cartId = cartId;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public Integer getBusinessId() {
        return businessId;
    }

    public void setBusinessId(Integer businessId) {
        this.businessId = businessId;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public List<CartItemVo> getItems() {
        return items;
    }

    public void setItems(List<CartItemVo> items) {
        this.items = items;
    }

    public Double getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(Double totalAmount) {
        this.totalAmount = totalAmount;
    }

    @Override
    public String toString() {
        return "CartInfoVo{" +
                "cartId=" + cartId +
                ", customerId=" + customerId +
                ", businessId=" + businessId +
                ", createTime=" + createTime +
                ", items=" + items +
                ", totalAmount=" + totalAmount +
                '}';
    }
}
